package com.ruoyi.asms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ruoyi.asms.domain.AsmsFaultConfirmStage;
import com.ruoyi.asms.mapper.AsmsFaultConfirmStageMapper;
import com.ruoyi.asms.service.IAsmsFaultConfirmStageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 故障处理结果确认信息Service业务层处理
 * 
 * @author yfkj
 * @date 2021-10-21
 */
@Service
public class AsmsFaultConfirmStageServiceImpl extends ServiceImpl<AsmsFaultConfirmStageMapper, AsmsFaultConfirmStage>  implements IAsmsFaultConfirmStageService
{
    @Autowired
    private AsmsFaultConfirmStageMapper asmsFaultConfirmStageMapper;

    /**
     * 查询故障处理结果确认信息
     * 
     * @param faultConfirmStageId 故障处理结果确认信息主键
     * @return 故障处理结果确认信息
     */
    @Override
    public AsmsFaultConfirmStage selectAsmsFaultConfirmStageByFaultConfirmStageId(Long faultConfirmStageId)
    {
        return asmsFaultConfirmStageMapper.selectAsmsFaultConfirmStageByFaultConfirmStageId(faultConfirmStageId);
    }

    /**
     * 查询故障处理结果确认信息列表
     * 
     * @param asmsFaultConfirmStage 故障处理结果确认信息
     * @return 故障处理结果确认信息
     */
    @Override
    public List<AsmsFaultConfirmStage> selectAsmsFaultConfirmStageList(AsmsFaultConfirmStage asmsFaultConfirmStage)
    {
        return asmsFaultConfirmStageMapper.selectAsmsFaultConfirmStageList(asmsFaultConfirmStage);
    }

    /**
     * 新增故障处理结果确认信息
     * 
     * @param asmsFaultConfirmStage 故障处理结果确认信息
     * @return 结果
     */
    @Override
    public int insertAsmsFaultConfirmStage(AsmsFaultConfirmStage asmsFaultConfirmStage)
    {
        return asmsFaultConfirmStageMapper.insertAsmsFaultConfirmStage(asmsFaultConfirmStage);
    }

    /**
     * 修改故障处理结果确认信息
     * 
     * @param asmsFaultConfirmStage 故障处理结果确认信息
     * @return 结果
     */
    @Override
    public int updateAsmsFaultConfirmStage(AsmsFaultConfirmStage asmsFaultConfirmStage)
    {
        return asmsFaultConfirmStageMapper.updateAsmsFaultConfirmStage(asmsFaultConfirmStage);
    }

    /**
     * 批量删除故障处理结果确认信息
     * 
     * @param faultConfirmStageIds 需要删除的故障处理结果确认信息主键
     * @return 结果
     */
    @Override
    public int deleteAsmsFaultConfirmStageByFaultConfirmStageIds(Long[] faultConfirmStageIds)
    {
        return asmsFaultConfirmStageMapper.deleteAsmsFaultConfirmStageByFaultConfirmStageIds(faultConfirmStageIds);
    }

    /**
     * 删除故障处理结果确认信息信息
     * 
     * @param faultConfirmStageId 故障处理结果确认信息主键
     * @return 结果
     */
    @Override
    public int deleteAsmsFaultConfirmStageByFaultConfirmStageId(Long faultConfirmStageId)
    {
        return asmsFaultConfirmStageMapper.deleteAsmsFaultConfirmStageByFaultConfirmStageId(faultConfirmStageId);
    }
}
